package com.designPatterns.command;

public class TestClient {
	public static void main(String[] args) {
		Invoker invoker=new Invoker();
		LightOnCommand lightOnCommand=new LightOnCommand(new Light());
		invoker.setCommand(lightOnCommand);
		invoker.invoke();
		invoker.setCommand(new LightOffCommand(new Light()));
		invoker.invoke();
	}
}
